//=============================================================================
//
//   File : qtg_treewidget.h
//   Creation date : Sab 19 mar 2011 09:31:42 CET by Antonino G.Imbesi
//
//   This file is part of the QtGLauncher distribution
//   Copyright (C) 2011 Antonino G. Imbesi <grifisx at barmes dot org>
//
//   This program is FREE software. You can redistribute it and/or
//   modify it under the terms of the GNU General Public License
//   as published by the Free Software Foundation; either version 2
//   of the License, or (at your opinion) any later version.
//
//   This program is distributed in the HOPE that it will be USEFUL,
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//   See the GNU General Public License for more details.
//
//   You should have received a copy of the GNU General Public License
//   along with this program. If not, write to the Free Software Foundation,
//   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
//=============================================================================

#ifndef QTG_TREEWIDGET_H
#define QTG_TREEWIDGET_H

#include <QTreeWidget>

class qtg_listviewitem;

class qtg_QTreeWidget : public  QTreeWidget
{

public:
    explicit qtg_QTreeWidget(QWidget *parent = 0);
    ~qtg_QTreeWidget();

signals:

protected:
    virtual void focusInEvent ( QFocusEvent * event );
public slots:
    void filterIterator(QString filter);
private:
    // Riscrivo la funzione drawRow
    void drawRow ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
    void mouseMoveEvent(QMouseEvent *);
};

#endif // QTG_TREEWIDGET_H
